
<%@page import="com.google.appengine.api.datastore.Text"%>
<%@page import="java.util.List"%>
<%@page import="sjs.service.EMF"%>
<%@page import="sjs.bean.TestJpa"%><%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%
	List<TestJpa> listtj=EMF.getAllListByName(TestJpa.class.getName());
	out.println(listtj.size());
	out.println("<br />");
	if(listtj.size()>0){
		out.println(listtj.get(0).getName());
	}
	TestJpa tj=new TestJpa();
	//tj.setId()
	tj.setName("aaaa");
	tj.setText(new Text("sdfsdfsdfsdf"));
	EMF.save(tj);
	List<TestJpa> ly=EMF.getAllListByName(TestJpa.class.getName());
	out.println(ly.size());
	if(ly.size()>0){
		out.println(ly.get(0).getName());
	}
%>